# -*- coding: utf-8 -*-
__author__ = 'Administrator'
from suds.client import Client
from suds.xsd.doctor import Import, ImportDoctor
import datetime

url = 'https://smsapi.ums86.com:9600/sms_hb/services/Sms?wsdl'
imp = Import('http://www.w3.org/2001/XMLSchema',
location='http://www.w3.org/2001/XMLSchema.xsd')
imp.filter.add('http://WebXml.com.cn/')
client = Client(url, doctor=ImportDoctor(imp))
print(client)
x0='2404019'
x1='xxk6096'
x2=''
x3='您好！你这次体检结果的主要问题是甲状腺结节、乳腺增生、子宫肌瘤，请定期跟踪复查，详细内容请看报告，报告由单位统一领取。咨询电话：28636255，东莞市人民医院体检中心'
x4='13532461491'
x5=datetime.datetime.now().strftime('%Y%m%d%H%M%S%f')
x6=''
x7='1'
x8=''
x9=''
x10=''
print(client.service.Sms(x0,x1,x2,x3,x4,x5,x6,x7,x8,x9,x10))
#print(client.service.getWeatherbyCityName('东莞'))
#print(client.service.getSupportCity('广东'))